{% extends 'Base/main.content.lists.div.html.twig' %}
{% import 'Base/list_item.twig' as listItem %}
{% block options %}
    {#<div class="menu-list">#}
        {#{{ dump(tools) }}#}
        {#{% for key , classes in tools %}#}
            {#{% set default = "请选择分类" %}#}
            {#{% set classes = classes %}#}
            {#<div class="rule-single-select">#}
                {#<select name="cond[{{ key }}]" onchange="javascript:__doPostBack('searchCond','')" >#}
                    {#<option value="" {{app.request.get("cond")[key] is defined and app.request.get("cond")[key] == "" ? ' selected="selected"' : "" }} >{{ default }}</option>#}
                    {#{% for class in classes %}#}
                        {#<option value="{{ class.id }}"#}
                                {#{{app.request.get("cond")[key] is defined and  app.request.get("cond")[key] == class.id ? ' selected="selected"' : "" }}#}
                        {#>{{ class.name }}</option>#}
                    {#{% endfor %}#}
                {#</select>#}
            {#</div>#}
        {#{% endfor %}#}
    {#</div>#}
{% endblock %}
{% block tableHead %}
    <tr>
        <th align="" width="6%">选择</th>
        <th align="" width="5%">#</th>
        <th align="" width="">名称</th>
        {#<th align="" width="">等级</th>#}
        <th align="" width="20%">排序</th>
        {#<th align="" width="">上级</th>#}
        <th align="" width="">图片</th>
        <th align="" width="">编码</th>
        <th align="" width="">首页置顶</th>
        <th align="" width="10%">操作</th>
    </tr>
{% endblock %}
{% block tableList %}
    {% for Entity in lists %}
        <tr>
            <td align='' width=''>
                <span class="checkall"><input lay-skin="primary" type="checkbox" name="ids[]" value="{{ Entity.ArtCategory_id }}"/></span>
            </td>
            <td align='' width='' id='name_{{ Entity.ArtCategory_id }}'>
                <div  name="row{{ Entity.ArtCategory_id }}">{{ listItem.text('id',Entity.ArtCategory_id,Entity.ArtCategory_id) }}</div>
            </td>
            <td align='' width='' id='name_{{ Entity.ArtCategory_id }}'>
                {{ listItem.tab(Entity.ArtCategory_level,Entity.ArtCategory_id) }}
                {{ listItem.text('name',Entity.ArtCategory_name,Entity.ArtCategory_id) }}
            </td>
            {#<td align='' width='' id='level_{{ Entity.ArtCategory_id }}'>#}
            {#{{ listItem.text('level',Entity.ArtCategory_level,Entity.ArtCategory_id) }}#}
            {#</td>#}
            <td align='' width='' id='orders_{{ Entity.ArtCategory_id }}'>
                {{ listItem.editVal('orders',Entity.ArtCategory_orders,Entity.ArtCategory_id) }}
            </td>
            {#<td align='' width='' id='parent_{{ Entity.ArtCategory_id }}'>#}
            {#{{ listItem.text('parent',Entity.ArtCategory_parent,Entity.ArtCategory_id) }}#}
            {#</td>#}
            <td align='' width='' id='pic_{{ Entity.ArtCategory_id }}'>
            {{ listItem.pic('pic',Entity.ArtCategory_pic,Entity.ArtCategory_id) }}
            </td>
            <td align='' width='' id='link_{{ Entity.ArtCategory_id }}'>
            {{ listItem.text('link',Entity.ArtCategory_link,Entity.ArtCategory_id) }}
            </td>
            <td align='' width='' id='is_Index_{{ Entity.ArtCategory_id }}'>
                {{ listItem.switch('is_Index',Entity.ArtCategory_is_Index,Entity.ArtCategory_id) }}
            </td>
            <td align='' width=''>
                {{ listItem.manage('ArtCategory','',Entity.ArtCategory_id) }}
                {{ listItem.copy('ArtCategory','',Entity.ArtCategory_id) }}
            </td>
        </tr>
    {% endfor %}
{% endblock %}
{% block script %}
{% endblock %}
